agents.anac.y2010.AgentSmith
Class IssueModel

java.lang.Object
  extended by agents.anac.y2010.AgentSmith.IssueModel

public class IssueModel
extends java.lang.Object

Model of one issue, takes all values of the opponent on this issue. Then the utility and it's weight can be calculated on this issue. In the OpponentModel this information is used to determine the utility of the other party.


Constructor Summary
IssueModel(Issue lIssue)
          Constructor
 
Method Summary
 void addValue(Value pValue)
          Add a value to the list
 double getAverage()
          The mean of the values in the values list.
 Value getBidValue(Bid pBid)
          returns the value of a bid
static Value getBidValueByIssue(Bid pBid, Issue pIssue)
          returns the value of an issue in a bid
 double getDeviation()
          The standard deviation utility of the issues.
 double getDiscreteUtility(Bid pBid)
          The utility of if this issue is discrete.
 double getDiscreteWeight()
          Gets the weight of this value.
 double getNumberValue(Value pValue)
          The value of an issue in a double type
 double getRealUtility(Bid pBid)
          The utility of a bid in the real or integer case
 double getRealWeight()
          returns the real (or integer) weight
 double getUtility(Bid pBid)
          The utility of a bid, which can be real, integer or discrete
 double getWeight()
          Get's the importance of this issues utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueModel

public IssueModel(Issue lIssue)
Constructor

Parameters:
lIssue -
Method Detail

getAverage

public double getAverage()
The mean of the values in the values list.


getDeviation

public double getDeviation()
The standard deviation utility of the issues.


addValue

public void addValue(Value pValue)
Add a value to the list


getNumberValue

public double getNumberValue(Value pValue)
The value of an issue in a double type


getUtility

public double getUtility(Bid pBid)
The utility of a bid, which can be real, integer or discrete


getDiscreteUtility

public double getDiscreteUtility(Bid pBid)
The utility of if this issue is discrete. Takes the amount of values that are the same and divides it by the total amount of values. If there are lots of same values as the bid, the utility will be high, else it will be low.


getRealUtility

public double getRealUtility(Bid pBid)
The utility of a bid in the real or integer case


getWeight

public double getWeight()
Get's the importance of this issues utility


getDiscreteWeight

public double getDiscreteWeight()
Gets the weight of this value. If there are lots of changes, it's not important, else it is important.


getRealWeight

public double getRealWeight()
returns the real (or integer) weight


getBidValue

public Value getBidValue(Bid pBid)
returns the value of a bid


getBidValueByIssue

public static Value getBidValueByIssue(Bid pBid,
                                       Issue pIssue)
returns the value of an issue in a bid